﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Instructor/Instructor.Master" AutoEventWireup="true" CodeBehind="Ins_Examination_Asgn.aspx.cs" Inherits="TAMS.Instructor.Ins_Examination_Asgn" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style14
        {
            width: 488px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<center>
Assign Examinations <br />
</center>
    <asp:Button ID="AddButton" runat="server" Text="Add" CssClass="button" PostBackUrl="~/Instructor/Ins_Examination.aspx" />
    <asp:Button ID="DeleteButton" runat="server" Text="Delete" CssClass="button" PostBackUrl="~/Instructor/Ins_Examination_Del.aspx" />
    <asp:Button ID="AssignButton" runat="server" Text="Assign" CssClass="button" PostBackUrl="~/Instructor/Ins_Examination_Asgn.aspx" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <center>
    <table style="width:100%;">
        <tr>
            <td class="style14">
                Exam&nbsp;&nbsp; <asp:DropDownList ID="ExamList" runat="server" 
                    AutoPostBack="True" DataSourceID="ExamData" DataTextField="exId" 
                    DataValueField="exId">
                </asp:DropDownList>
                <asp:SqlDataSource ID="ExamData" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:TAMS %>" 
                    ProviderName="<%$ ConnectionStrings:TAMS.ProviderName %>" 
                    SelectCommand="SELECT E.exId FROM Examination E"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style14">
                Course <asp:DropDownList ID="CourseList" runat="server" AutoPostBack="True">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="SearchButton" runat="server" Text="Search Avaliable" 
                    OnClick="selectClicked" CssClass="button" Width="155px" /></td>
        </tr>
    </table>
        <asp:GridView ID="SearchTable" runat="server" CellPadding="4" 
            ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
            <Columns>
            <asp:TemplateField>
                 <ItemTemplate>
                         <asp:Button ID="Select" runat="server" Text="Select" CommandName="Select" CssClass="button"/>
                 </ItemTemplate>
            </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:Label ID="ChangedLabel" runat="server"></asp:Label><br />
     <div style="color: red" align="center">
    <asp:Label ID="ErrorLabel" runat="server"></asp:Label>
    </div>
    <asp:Button ID="AssignBut" runat="server" Text="Assign" OnClick="assignClicked" CssClass="button" />
</asp:Content>
